import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import installElementPlus from './plugins/element'
import './assets/css/global.scss'
import {createReliefMaps, parseTime, resetForm} from "@/utils/code";
import * as echarts from 'echarts'
import china from './assets/json/china.json';

echarts.registerMap('china', china);
require('echarts/lib/component/aria');

const app = createApp(App)

// 全局方法挂载
app.config.globalProperties.parseTime = parseTime
app.config.globalProperties.resetForm = resetForm
app.config.globalProperties.createReliefMaps = createReliefMaps
app.config.globalProperties.$echarts = echarts

installElementPlus(app)
app.use(router).mount('#app')